package com.dylan.channel.v8;


import com.dylan.channel.v8.channel.NioServerSocketChannel;

import java.io.IOException;

public class NettyServerV8 {

    public static void main(String[] args) throws IOException, InterruptedException {
        NioEventLoopGroup bossGroup = new NioEventLoopGroup(2);
        NioEventLoopGroup workGroup = new NioEventLoopGroup(2);
        ServerBootstrap bootstrap = new ServerBootstrap();
        bootstrap.channel(NioServerSocketChannel.class)
                .group(bossGroup, workGroup)
                .bind(8086).sync();
    }
}
